#!/usr/bin/env bash
#如果不需要 客户端自动发布，去掉注释
#exit 0
svnSource='https://w.erayt.com:8443/svn/eTrading_PL/eTrading/01.00.00/ETRADING_CLIENT/TEST/setup/output/test'
username=zhangjunkai
password=8uh9ijAA

deployIP=192.168.41.208
ecasPath=tomcat/tomcat-ecas-web-update-9001



##### 下面脚本不用调整  #####



echo $'\n'"=======  executing publishClient.sh =============== "$'\n'

#发布客户端
echo "svn co $svnSource /tmp/etrading/  --depth files --non-interactive --username $username --password $password"
scp /tmp/etrading/*.exe $deployIP:$ecasPath/webapps/ecas/update/

echo '======> publish finished '